package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 成品追溯表单对象
 *
 * @author liwenbing
 * @since 2025-04-09 23:40
 */
@Getter
@Setter
@Schema(description = "成品追溯表单对象")
public class SysDianciFinishedRetrospectForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "批次号")
    @NotBlank(message = "批次号不能为空")
    @Size(max=64, message="批次号长度不能超过64个字符")
    private String batchNo;

    @Schema(description = "工序类型")
    @NotNull(message = "工序类型不能为空")
    private Integer workType;

    @Schema(description = "操作人")
    //@NotBlank(message = "操作人不能为空")
    //@Size(max=64, message="操作人长度不能超过64个字符")
    private String userName;

    @Schema(description = "操作人ID")
    //@NotNull(message = "操作人ID不能为空")
    private Long userId;

    @Schema(description = "json数据")
    //@Size(max=255, message="json数据长度不能超过255个字符")
    private String json;

    @Schema(description = "备注")
    @Size(max=255, message="备注长度不能超过255个字符")
    private String remark;

    @Schema(description = "记录时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
